 /* jshint esversion: 6 */
 const state = {
    loginStatus: localStorage.getItem('patient_token') || null,
    token: localStorage.getItem('patient_token') || ''
};
const mutations = {
    //是否登录成功
    SET_PATIENT_STATUS(state, data) {
        state.loginStatus = data
    },
    //获取一波token
    SET_PATIENT_TOKEN(state, token) {
        state.token = token
    }
};
const actions = {

};
const getters = {

};

export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
};
